package com.ape.mapsa.produccion.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the conf_performed_work database table.
 * 
 */
@Entity
@Table(name = "conf_performed_work")
@NamedQuery(name = "ConfPerformedWork.findAll", query = "SELECT c FROM ConfPerformedWork c")
public class ConfPerformedWork implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	@Column(name = "bobina_n")
	private Integer bobinaN;

	private String createdby;

	@Temporal(TemporalType.TIMESTAMP)
	private Date creationdate;

	private Integer bolsas;

	@Temporal(TemporalType.TIMESTAMP)
	private Date modificationdate;

	private String modifiedby;

	private String operario;

	private Integer bultos;

	private Integer state;

	// bi-directional many-to-one association to ProdOperator
	@ManyToOne
	@JoinColumn(name = "prod_operator_id")
	private ProdOperator prodOperator;

	// bi-directional many-to-one association to Confeccion
	@ManyToOne
	private Confeccion confeccion;

	public ConfPerformedWork() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getBobinaN() {
		return this.bobinaN;
	}

	public void setBobinaN(Integer bobinaN) {
		this.bobinaN = bobinaN;
	}

	public String getCreatedby() {
		return this.createdby;
	}

	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}

	public Date getCreationdate() {
		return this.creationdate;
	}

	public void setCreationdate(Date creationdate) {
		this.creationdate = creationdate;
	}

	public Date getModificationdate() {
		return this.modificationdate;
	}

	public void setModificationdate(Date modificationdate) {
		this.modificationdate = modificationdate;
	}

	public String getModifiedby() {
		return this.modifiedby;
	}

	public void setModifiedby(String modifiedby) {
		this.modifiedby = modifiedby;
	}

	public String getOperario() {
		return this.operario;
	}

	public void setOperario(String operario) {
		this.operario = operario;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Confeccion getConfeccion() {
		return this.confeccion;
	}

	public void setConfeccion(Confeccion confeccion) {
		this.confeccion = confeccion;
	}

	public Integer getBolsas() {
		return bolsas;
	}

	public void setBolsas(Integer bolsas) {
		this.bolsas = bolsas;
	}

	public Integer getBultos() {
		return bultos;
	}

	public void setBultos(Integer bultos) {
		this.bultos = bultos;
	}

	public ProdOperator getProdOperator() {
		return prodOperator;
	}

	public void setProdOperator(ProdOperator prodOperator) {
		this.prodOperator = prodOperator;
	}

}